package com.xzlf;

import java.io.IOException;
import java.util.Properties;

public class PropertyMgr {
    static Properties properties = new Properties();
    static {
        try {
            properties.load(PropertyMgr.class.getClassLoader().getResourceAsStream("config"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
    public static Object get(String key){
        return properties.get(key);
    }

    public static void main(String[] args) {
        Object inintCount = PropertyMgr.get("inintCount");
        System.out.println(inintCount);
    }
}
